package conf_handler

import (
	"peilian-api/app/services/conf_service"
	"peilian-api/utils/format"

	"github.com/gin-gonic/gin"
)

// 获取学历列表
func GetEductionList(ctx *gin.Context) {
	cs := new(conf_service.ConfService)
	eductionList := cs.GetEducationList()
	format.NewResponseJson(ctx).SuccessObj(eductionList)
}

// 获取年级列表
func GetGradeLise(ctx *gin.Context) {
	cs := new(conf_service.ConfService)
	eductionList := cs.GetGradeList()
	format.NewResponseJson(ctx).SuccessObj(eductionList)
}

// 获取前置视频
func GetProfont(ctx *gin.Context) {
	cs := new(conf_service.ConfService)
	profontList := cs.GetProfont()
	format.NewResponseJson(ctx).SuccessObj(profontList)
}
